{include file="admin/includes/header.tpl"}

<h1>Users</h1>

<p>{icon id='add'}<a href="users.php?mode=add">Add a New User</a></p>

<table id="tables">
  <thead>
    <tr>
      <th>Name</th>
      <th>Username</th>
      <th>Email</th>
      <th>Type</th>
      <th colspan="2" width="140">Actions</th>
    </tr>
  </thead>
  
  <tbody>
    {foreach from=$rows item=row}
    <tr>
      <td>{$row->name}</td>
      <td>{$row->username}</td>
      <td>{$row->email}</td>
      <td>{$row->type}</td>
      <td>{icon id='pencil'}<a href="users.php?mode=edit&id={$row->uid}">Edit</a></td>
      <td>{icon id='delete'}<a href="users.php?mode=remove&id={$row->uid}">Remove</a></td>
    </tr>
    {/foreach}
  </tbody>
  
  <tfoot><tr><td colspan="6">&nbsp;</td></tr></tfoot>
</table>


{include file="admin/includes/footer.tpl"}